package com.jchy.renderit.displayable;
 
import com.jchy.renderit.core.MultiPrimitiveObject;
import com.jchy.renderit.displayable.Circle;
import com.jchy.renderit.displayable.Cylinder;

class CappedCylinder extends MultiPrimitiveObject
{
    public CappedCylinder()
    {
        Circle topCircle=new Circle();
        topCircle.RotateX(90.0);
        topCircle.translate(0.0,-1.0,0.0);
        Circle bottomCircle=new Circle();
        bottomCircle.RotateX(90);
        bottomCircle.translate(0.0,1.0,0.0);
        multi.addElement(topCircle);
        multi.addElement(new Cylinder());
        multi.addElement(bottomCircle);
    }
}
